<?php
defined('_JEXEC') or die;

/**
 * Manager language helper class.
 *
 * @author	NhanLT
 */
class ManagerHelper { 
	
	const PRODUCT_STATUS_CAN_USE = 0;
	const PRODUCT_STATUS_USED = 1;
	const PRODUCT_STATUS_EXPIRED = 2;
	const PRODUCT_STATUS_CAN_USE_TEXT = 'Can Use';
	const PRODUCT_STATUS_USED_TEXT = 'Used';
	const PRODUCT_STATUS_EXPIRED_TEXT = 'Expried';
	
	static function getTextStatus($status_id=self::PRODUCT_STATUS_CAN_USE) {
		switch ($status_id) {
			case self::PRODUCT_STATUS_CAN_USE:
				return self::PRODUCT_STATUS_CAN_USE_TEXT;
			case self::PRODUCT_STATUS_USED:
				return self::PRODUCT_STATUS_USED_TEXT;
			case self::PRODUCT_STATUS_EXPIRED:
				return self::PRODUCT_STATUS_EXPIRED_TEXT;
		}
	}
}
